package net.chathu.airgw.packets.redirect 
{
	/**
	 * ...
	 * @author ze
	 */
	public class LoginOKPacket extends Sendable
	{
		private static var _header:int = 0x03;
		
		private var _sid:String;
		private var _sessionId:String;
		
		public function LoginOKPacket(sid:String, sessionId:String) 
		{
			_sid = sid;
			_sessionId = sessionId;
			init();
		}
		
		public function init():void
		{
			writeByte(_header);
			writeByte(getSize(_sid));
			writeString(_sid);
			writeByte(getSize(_sessionId));
			writeString(_sessionId);
		}
		
	}

}